﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;

namespace LoginExample
{
    /// <summary>  
    /// Interaction logic for Window1.xaml  
    /// </summary>  
    public partial class HomePage : Window
    {
        public HomePage()
        {
            InitializeComponent();


            this.Width = 600;
            this.Height = 400;
        }

        // Ensure this method is not manually implemented here.  
        // It should be auto-generated by the XAML designer.  
        // Remove the following method if it exists in your code.  
        // The presence of this method causes ambiguity.  
        // If you need to regenerate the designer file, clean and rebuild the project.  
        // private void InitializeComponent()  
        // {  
        //     throw new NotImplementedException();  
        // }  
        private void Logout_Click(object sender, RoutedEventArgs e)
        {
            // 打开登录窗口
            MainWindow loginWindow = new MainWindow();
            loginWindow.Show();

            // 关闭当前主页窗口
            this.Close();
        }
    }
}
